#!/bin/bash
#2018年6月4日22:26:43
#auto install apache web
#by author www.jfedu.net
########################
APA_VER="2.4.32"
APA_SOFT="httpd-${APA_VER}.tar.gz"
APA_URL="https://mirrors.tuna.tsinghua.edu.cn/apache/httpd"
APA_DIR="/usr/local/apache2"
APA_ARG="--enable-so --enable-rewrite --enable-ssl --enable-proxy"
yum install -y wget gcc gcc-c++ tar make  zlib zlib-devel
wget -c  $APA_URL/$APA_SOFT
tar -xzf $APA_SOFT
cd httpd-${APA_VER}
./configure --prefix=$APA_DIR/ $APA_ARG 
make
make install
$APA_DIR/bin/apachectl start
ps -ef|grep httpd
netstat -tnlp|grep 80
setenforce 0
systemctl stop firewalld.service
